<%-- 
    Document   : Ficha_Medica
    Created on : 17/06/2010, 01:51:08 PM
    Author     : pgutierrez
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<HTML>
<HEAD>
<meta http-equiv="Content-Language" content="en-us">

<TITLE>Clinica Anglolab - Mantenimiento de fichas</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<LINK href="css/styles.css" rel=stylesheet>
<script language="javascript">
    function modificar(link){
        var id = link.parentNode.parentNode.childNodes[0].innerHTML;
        document.frmFichaMedica.Orden=link.parentNode.parentNode.childNodes[0].innerHTML;

    }
</script>
</HEAD>
<BODY BGCOLOR=#FFFFFF topmargin="0" leftmargin="0">
<center>
  <TABLE WIDTH=791 BORDER=0 CELLPADDING=0 CELLSPACING=0>
	<TR>
		<TD width="13">
			<IMG SRC="spacer.gif" WIDTH=13 HEIGHT=1></TD>
		<TD width="72">
			<IMG SRC="spacer.gif" WIDTH=72 HEIGHT=1></TD>
		<TD width="57">
			<IMG SRC="spacer.gif" WIDTH=57 HEIGHT=1></TD>
		<TD width="80">
			<IMG SRC="spacer.gif" WIDTH=80 HEIGHT=1></TD>
		<TD width="58">
			<IMG SRC="spacer.gif" WIDTH=58 HEIGHT=1></TD>
		<TD width="7">
			<IMG SRC="spacer.gif" WIDTH=7 HEIGHT=1></TD>
		<TD width="12">
			<IMG SRC="spacer.gif" WIDTH=12 HEIGHT=1></TD>
		<TD width="50">
			<IMG SRC="spacer.gif" WIDTH=50 HEIGHT=1></TD>
		<TD width="10">
			<IMG SRC="spacer.gif" WIDTH=10 HEIGHT=1></TD>
		<TD width="105">
			<IMG SRC="spacer.gif" WIDTH=105 HEIGHT=1></TD>
		<TD width="9">
			<IMG SRC="spacer.gif" WIDTH=9 HEIGHT=1></TD>
		<TD width="95">
			<IMG SRC="spacer.gif" WIDTH=95 HEIGHT=1></TD>
		<TD width="18">
			<IMG SRC="spacer.gif" WIDTH=18 HEIGHT=1></TD>
		<TD width="80">
			<IMG SRC="spacer.gif" WIDTH=80 HEIGHT=1></TD>
		<TD width="124">
			<IMG SRC="spacer.gif" WIDTH=124 HEIGHT=1></TD>
		<TD width="1"></TD>
	</TR>
	<TR>
		<TD COLSPAN=15>
			<IMG SRC="images/Slice01.gif" WIDTH=790 HEIGHT=239></TD>
		<TD width="1">
			<IMG SRC="spacer.gif" WIDTH=1 HEIGHT=239></TD>
	</TR>
	<TR>
		<TD COLSPAN=6>
			<IMG SRC="images/Slice02.gif" WIDTH=287 HEIGHT=42></TD>
		<TD COLSPAN=3>
			<a href="laboratoristas_mantener.htm?metodo=menu_laboratoristas">
			<IMG SRC="images/Slice03.gif" WIDTH=72 HEIGHT=42 onMouseOver="this.src='images/Slice03_over.gif';" onMouseOut="this.src='images/Slice03.gif';" border="0"></a></TD>
		<TD width="105">
			<a href="pacientes_mantener.htm">
			<IMG SRC="images/Slice04.gif" WIDTH=105 HEIGHT=42 onMouseOver="this.src='images/Slice04_over.gif';" onMouseOut="this.src='images/Slice04.gif';" border="0"></a></TD>
		<TD COLSPAN=2>
			<a href="fichas_mantener.htm">
			<IMG SRC="images/Slice05.gif" WIDTH=104 HEIGHT=42 onMouseOver="this.src='images/Slice05_over.gif';" onMouseOut="this.src='images/Slice05.gif';" border="0"></a></TD>
		<TD COLSPAN=2>
			<a href="#">
			<IMG SRC="images/Slice06.gif" WIDTH=98 HEIGHT=42 onMouseOver="this.src='images/Slice06_over.gif';" onMouseOut="this.src='images/Slice06.gif';" border="0"></a></TD>
		<TD width="124">
			<a href="#">
			<IMG SRC="images/Slice07.gif" WIDTH=124 HEIGHT=42 onMouseOver="this.src='images/Slice07_over.gif';" onMouseOut="this.src='images/Slice07.gif';" border="0"></a></TD>
		<TD width="1">
			<IMG SRC="spacer.gif" WIDTH=1 HEIGHT=42></TD>
</TABLE>
</center>

<div style="position: absolute; width: 789px; height: 268px; z-index: 1; left: 321px; top: 291px" id="FormularioFichas">
	<form name="frmFichaMedica" action="fichas_mantener.htm" method="post">
        <input type="hidden" name="metodo" value="insertar"/>
		<!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->

		<table border="0" width="100%" style="border-collapse: collapse">
		<tr class="header1">
			<td colspan="6">MANTENIMIENTO DE FICHAS MEDICAS</td>
		</tr>
		<tr>
			<td width="14%">&nbsp;</td>
			<td width="17%">&nbsp;</td>
			<td width="12%">&nbsp;</td>
			<td width="16%">&nbsp;</td>
			<td width="11%">&nbsp;</td>
			<td width="29%">&nbsp;</td>
		</tr>
		<tr class="altrow1">
			<td width="14%">&nbsp;</td>
			<td width="17%">&nbsp;</td>
			<td width="12%">&nbsp;</td>
			<td width="16%">&nbsp;</td>
			<td width="11%">&nbsp;</td>
			<td width="29%">&nbsp;</td>
		</tr>

		<tr class="altrow1">
			<td width="14%">Orden</td>
			<td width="17%"><input type="text" name="Orden" size="9"></td>
			<td width="12%">Fecha Orden</td>
			<td width="16%"><input type="text" name="FecOrd" size="9"></td>
			<td width="11%">Especialidad</td>
			<td width="29%"><select size="1" name="Espcl">
                        <option value="1">Medicina General</option>
                        <option value="2">Neumologia</option>
                        <option value="3">Cardiologia</option>
                            </select></td>
		</tr>
		<tr class="altrow1">
			<td width="14%">Paciente</td>
			<td width="84%" colspan="5"><select size="1" name="Paciente">

                        <c:forEach items="${paciente}" var="f">
                          <option value=${f.id_paciente}>${f.nombres} ${f.apellidos}</option>
                        </c:forEach>

                        </select></td>
		</tr>
		<tr class="altrow1">
			<td width="14%">Analisis</td>
			<td width="84%" colspan="5"><select size="1" name="Analisis">

                        <c:forEach items="${analisis}" var="a">
                          <option value=${a.id_analisis}>${a.descripcion}</option>
                        </c:forEach>

                        </select></td>
		</tr>
               <tr class="altrow1">
			<td width="14%">Muestra</td>
			<td width="84%" colspan="5"><select size="1" name="Muestra">

                        <c:forEach items="${muestra}" var="m">
                          <option value=${m.id_muestra}>${m.descripcion}</option>
                        </c:forEach>

                        </select></td>
		</tr>
		<tr class="altrow1">
			<td width="14%">Observaciones</td>
			<td width="84%" colspan="5"><textarea rows="3" name="Observ" cols="56"></textarea></td>
		</tr>
		<tr class="altrow1">
			<td width="98%" colspan="6">&nbsp;</td>
		</tr>
		<tr>
			<td width="98%" colspan="6">&nbsp;</td>
		</tr>
		<tr>
			<td width="14%">&nbsp;</td>
			<td width="17%">&nbsp;</td>
			<td width="12%"><input type="button" value="Buscar" name="B2"></td>
			<td width="16%"><input type="submit" value="Ingresar"></td>
			<td width="11%">&nbsp;</td>
			<td width="29%">&nbsp;</td>
		</tr>

	</table>


	</form>
	</div>

<div style="position: absolute; width: 789px; height: 100px; z-index: 2; left: 321px; top: 580px" id="ListadoFichas">
<table border="0" width="100%" style="border-collapse: collapse">
	<tr  class="header">
		<td width="80">FICHA</td>
		<td width="123">FECHA</td>
		<td width="261">PACIENTE</td>
		<td width="124">ANALISIS</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>

      <c:forEach items="${fichas}" var="u">

        <tr  class="altrow">
            <td width="133">${u.id_ficha_medica}</td>
		<td width="125">${u.fec_registro}</td>
		<td width="263">${u.paciente}</td>
		<td width="126">${u.des_analisis}</td>
		<td>
                    <a href="javascript:;" onclick="javascript:modificar(this);">
                        <img border="0" src="images/modificar.gif" width="25" height="19">
                    </a>
                </td>
		<td>
		<p align="center">&nbsp;
                <a href="fichas_mantener.htm?metodo=eliminar&idficha=${u.id_ficha_medica}">
		<img border="0" src="images/eliminar.gif" width="20" height="18" ></td>
                </a>
	</tr>
        </c:forEach>

        
</table>
</div>

</BODY>
</HTML>